﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Utility
{
    public static class SystemUtil
    {
        /// <summary>
        /// 根据statuscode返回查询到的汉字信息并且提交给前台
        /// </summary>
        /// <param name="statuscode">标识符</param>
        /// <returns></returns>
        public static string getMessage(int statuscode)
        {
            string result = "操作成功";
            switch (statuscode)
            {
                case 200:
                    result = "操作成功";
                    break;
                case 201:
                    result = "操作失败"; 
                    break;
                case 202:
                    result = "结果为空";
                    break;
                case 203:
                    result = "参数传递错误";
                    break;

            }
            return result;
        }
    }
}
